<template>
  <div>
    <el-button type="primary" @click="visible = true">显示</el-button>
    <my-modal :labels="labels" :visible.sync="visible" @ok="ok"></my-modal>
  </div>
</template>

<script>
export default {
  data() {
    return {
      visible: true,
      labels: {
        name: '姓名',
        password: '姓名'
      }
    }
  },
  methods: {
    ok(data) {
      console.log(data)
    }
  },
  mounted() {
  },
  components: {
  }
}
</script>
